public class Course {
    private String courseId;
    private String courseName;
    private double credit;
    
    public Course(String courseId, String courseName, double credit) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.credit = credit;
    }
    
    public void displayInfo() {
        System.out.println("课程编号：" + courseId + "，名称：" + courseName + "，学分：" + credit);
    }
    
    public String getCourseId() { return courseId; }
    public String getCourseName() { return courseName; }
    public double getCredit() { return credit; }
}